#pragma once
#include "afxcmn.h"
#include "AlarmModel.h"
#include "afxdtctl.h"
#include "afxwin.h"

// CAlarmLogDlg dialog

class CAlarmLogDlg : public CDialog
{
	DECLARE_DYNAMIC(CAlarmLogDlg)

public:
	CAlarmLogDlg(CWnd* pParent = NULL);   // standard constructor
	virtual ~CAlarmLogDlg();

// Dialog Data
	enum { IDD = IDD_LOG_DIALOG };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedFilter();
	virtual BOOL OnInitDialog();
	CListCtrl m_logview;
	void insertAlarmitem(const ALARMITEM & alarmitem);
	CDateTimeCtrl m_fromdate;
	CEdit m_sid;
	CString sid;
	afx_msg void OnNMCustomdrawList1(NMHDR *pNMHDR, LRESULT *pResult);
};
